---
title: "verify · RUAL Documentation"
description: "Verifies the given json web token and returns the payload if valid."
canonical: https://docs.rual.nl/block-types/json web token/function_jwt_verify
language: en
---

# verify

This block is part of the [`json web token`](https://docs.rual.nl/block-types/json%20web%20token) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Verifies the given json web token and returns the payload if valid.

- flow `flow`

- token required `value` the token to be verified

- secret required `value` the secret or private key used to sign the jwt

- flow `flow`

- success `condition`

- error `value`

- payload `object`

| `jwt` |
| --- |

A typical wiring for [verify](https://docs.rual.nl/block-types/json%20web%20token/function_jwt_verify): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `token` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `secret` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the verify block: typical wiring for verify.](https://docs.rual.nl/canvas-examples/function_jwt_verify.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
